package com.teamwings.modules.oss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.teamwings.modules.oss.entity.OssFile;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;

public interface IOssService extends IService<OssFile> {

    // 文件上传
    OssFile uploadFile(MultipartFile file, String bizPath);

    void deleteFile(String path);

    void downloadFile(String path, HttpServletResponse response);

    void downloadFiles(List<String> pathList, HttpServletResponse response);

}
